package app.vendorportal.api.marketplace.data.response;

import app.vendorportal.api.marketplace.data.QueryInventoryResponseItem;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * @author vince
 */
@XmlRootElement(name = "query-inventory-response")
@XmlAccessorType(XmlAccessType.FIELD)
public class QueryInventoryResponse {

    @XmlElement(name = "total-count")
    private long totalCount;

    @XmlElement(name = "current-offset")
    private long currentOffset;

    @XmlElementWrapper(name = "sku-inventory-list")
    @XmlElement(name = "sku-inventory")
    private final List<QueryInventoryResponseItem> queryInventoryResponseItems = new ArrayList<>();

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public long getCurrentOffset() {
        return currentOffset;
    }

    public void setCurrentOffset(long currentOffset) {
        this.currentOffset = currentOffset;
    }

    public List<QueryInventoryResponseItem> getQueryInventoryResponseItems() {
        return queryInventoryResponseItems;
    }
}
